const https = require("https");
https.get("https://maoyan.com/films", (res) => {
    let str = "";
    res.on("data", (chunk) => {
        str += chunk;
    })
    res.on("end", () => {
        // var obj = JSON.parse(str);
        console.log(str)
    })

})